#pragma once
// -------------------------------------------------
// BlinKit - BlinKit Library
// -------------------------------------------------
//   File Name: qjs_recursion_scope.h
// Description: RecursionScope Class
//      Author: Ziming Li
//     Created: 2022-04-24
// -------------------------------------------------
// Copyright (C) 2022 MingYang Software Technology.
// -------------------------------------------------

#ifndef BLINKIT_QJS_RECURSION_SCOPE_H
#define BLINKIT_QJS_RECURSION_SCOPE_H

#include "blinkit/blink/renderer/wtf/Allocator.h"
#include "third_party/quickjs/quickjs.h"

namespace BlinKit {
namespace qjs {

class RecursionScope
{
    STACK_ALLOCATED()
public:
    RecursionScope(JSContext *ctx);
    ~RecursionScope(void);
private:
    JSContext *m_ctx;
};

} // namespace qjs
} // namespace BlinKit

#endif // BLINKIT_QJS_RECURSION_SCOPE_H
